﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Landscape {
    public class Resources {
        public static string GetEmbeddedResource(string resourceName) {
            System.Reflection.Assembly assem = System.Reflection.Assembly.GetCallingAssembly();
            using (System.IO.Stream stream = assem.GetManifestResourceStream(resourceName)) {
                using (var reader = new System.IO.StreamReader(stream)) {
                    return reader.ReadToEnd();
                }
            }
        }
    }
}
